package com.wu.llpsw.effect;

import com.wu.llpsw.effect.potion.recipe;
import com.wu.llpsw.item.ModItems;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.item.alchemy.Potion;
import net.minecraft.world.item.alchemy.Potions;
import net.minecraftforge.common.brewing.BrewingRecipeRegistry;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ModPotion {
    public static final DeferredRegister<Potion> POTIONS = DeferredRegister.create(ForgeRegistries.POTIONS, "wu");

    //凝元药水
    public static final RegistryObject<Potion> ningYuanPotion = POTIONS.register("ningyuan_potion",
            () -> new Potion(new MobEffectInstance(ModEffects.NINGYUAN.get(), 20*60, 0)));

    //public static final RegistryObject<Potion> DEADLY_POTION = POTIONS.register("deadly_potion",
    //	    () -> new Potion(new MobEffectInstance(EffectInit.DEADLY.get(), 200, 0)));


    public static void register(IEventBus eventBus) {
        //注册药水
        POTIONS.register(eventBus);

    }

}
